<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    if (typeof (a) && (-true) + (+undefined)) {
        console.log('通过了');
    } else {
        console.log('没通过');
    }
    console.log(+undefined - 1 + '')
</script>
<script>
    var a = '1'
    function test() {
        var a = '2';
        this.a = '3';
        console.log(a);
    }
    test();
    new test();
    console.log(a);
</script>

</html>